<h1><?php echo $title ?></h1>
<?php if($picture): ?><img src="/web/uploads<?php echo $picture ?>" alt="" style="float: left; margin: 0 10px 10px 0;" /><?php endif; ?>
<div>
  <?php echo $contents; ?>
</div>
<script type="text/javascript">
javascript:print();
</script>